<form id="add-form" class="form-horizontal" role="form" data-toggle="validator" method="POST" action="">


    <div class="form-group">
        <label for="c-number" class="control-label col-xs-12 col-sm-2">{:__('Number')}:</label>
        <div class="col-xs-12 col-sm-8">
            <input id="c-number" class="form-control" name="row[number]" type="text" value="" data-rule="required">
        </div>
    </div>

    <div class="form-group">
        <label for="c-name" class="control-label col-xs-12 col-sm-2">{:__('Name')}:</label>
        <div class="col-xs-12 col-sm-8">
            <input id="c-name" class="form-control" name="row[name]" type="text" value="" data-rule="required">
        </div>
    </div>

    <div class="form-group">
        <label for="c-dorm-price" class="control-label col-xs-12 col-sm-2">{:__('Dorm Price')}:</label>
        <div class="col-xs-12 col-sm-8">
            <input id="c-dorm-price" class="form-control" name="row[dorm_price]" type="text" value="" data-rule="required" placeholder="{:__('Dorm Price Explain')}">
        </div>
    </div>

    <div class="form-group">
        <label for="c-dorm-type" class="control-label col-xs-12 col-sm-2">{:__('Dorm Category')}:</label>
        <div class="col-xs-12 col-sm-8">
            {:build_select('row[dorm_category]', $dormCategoryData, null, ['class'=>'form-control selectpicker', 'data-rule'=>'required'])}
        </div>
    </div>


    <div class="form-group">
        <label for="c-floor-count" class="control-label col-xs-12 col-sm-2">{:__('Floor')}:</label>
        <div class="col-xs-12 col-sm-8">
            <input id="c-floor-count" class="form-control" name="row[floor_count]" type="text" value="" data-rule="required">
        </div>
    </div>

    <div class="form-group">
        <label for="c-dorm-type" class="control-label col-xs-12 col-sm-2">{:__('Dorm Type')}:</label>
        <div class="col-xs-12 col-sm-8">
            {:build_select('row[dorm_type]', $dormTypeData, null, ['class'=>'form-control selectpicker', 'data-rule'=>'required'])}
        </div>
    </div>

    <div class="form-group">
        <label for="c-floor-dorm-count" class="control-label col-xs-12 col-sm-2">{:__('Floor Dorm Count')}:</label>
        <div class="col-xs-12 col-sm-8">
            <input id="c-floor-dorm-count" class="form-control" name="row[floor_dorm_count]" type="text" value="" data-rule="required">
        </div>
    </div>

    <div class="form-group">
        <label for="c-dorm-bed-count" class="control-label col-xs-12 col-sm-2">{:__('Dorm Bed Count')}:</label>
        <div class="col-xs-12 col-sm-8">
            <input id="c-dorm-bed-count" class="form-control" name="row[dorm_bed_count]" type="text" value="" data-rule="required">
        </div>
    </div>

    <div class="form-group layer-footer">
        <label class="control-label col-xs-12 col-sm-2"></label>
        <div class="col-xs-12 col-sm-8">
            <input id="init_dorm" class="form-control" name="init_dorm" type="hidden" value="0">

            <button type="submit" class="btn btn-success btn-embossed disabled" data-type="0">{:__('Save')}</button>
            <button type="submit" class="btn btn-success btn-init disabled" data-type="1">{:__('Init Dorm')}</button>
            <button type="reset" class="btn btn-default btn-embossed">{:__('Reset')}</button>
        </div>
    </div>
</form>
